<% @page_title = "Councillor " + @councillor.full_name %>
<h1><%= @councillor.full_name %></h1>

<%= content_tag("p", "Ward: " + link_to(@councillor.ward.name, @councillor.ward)) %>
<%= content_tag("p", "Party: " + link_to(@councillor.party.name, @councillor.party)) %>
<%= content_tag("p", "E-mail address: " + mail_to(@councillor.email_address)) if @councillor.email_address %>
<%= content_tag("p", "End of term: " + @councillor.end_of_term) if @councillor.end_of_term %>
<%= content_tag("p", "Official webpage listing: " + link_to(@councillor.official_council_webpage_listing, @councillor.official_council_webpage_listing)) if @councillor.official_council_webpage_listing %>

<% if @councillor.committee_memberships.size > 0 %>
  <%= content_tag("p", "Member of the following " + pluralize(@councillor.committee_memberships.size, "committee") + ":")%>
  <% content_tag("ul") do %>
    <% @councillor.committees.each do |committee| %>
      <%= list_link_to committee.name, committee %>
    <% end %>
  <% end %>
<% end %>